package cn.keniykey.mc.landterritory.database;

import java.util.Arrays;

public final class DataRepository {
	private final String sql;
	private final Object[] values;
	//
	DataRepository(String sql,Object[] values) {
		this.sql = sql; this.values = values;
	}
	//
	public String getSQL() {
		return this.sql;
	}
	public Object[] getValues() {
		return this.values;
	}
	//
	@Override
	public String toString() {
		final StringBuilder builder = new StringBuilder();
		builder.append("SQL: ");
		builder.append(this.sql);
		if(this.values != null && this.values.length > 0) {
			builder.append(" Values： ");
			builder.append(Arrays.toString(this.values));
		}
		return builder.toString();
	}
}